package com.abu.utils;

import java.util.Random;

public class GeneratorCodeUtils {

    public static String getCode(int size) {

        StringBuilder sb = new StringBuilder(size);

        for (int i = 0; i < size; i++) {
            int num = new Random().nextInt(size) + 1;
            sb.append(num);
        }
        return sb.toString();
    }
}
